clear
set more off


* -----------------------------------------------------------
use "${final}/ivr_clean_data.dta", clear


global ivr_outcomes	 savings_opportunity savings_each_month savings_over50   /*
*/			visit_less_monthly visit_fewer_last_year

keep treatment treatment_* $ivr_outcomes strata $controls

est clear
foreach var in $ivr_outcomes {
	eststo: reg `var' treatment_3 i.strata $controls
	estadd local SE 	"Yes"
	quietly summ `var' if treatment == 1 & strata == 1
	estadd scalar r(mean)
	
	
}
esttab using "${output}/IVR_outcomes.tex", replace /*
*/	   sfmt(%12.3fc) number booktabs f b(3) se(3) /*
*/	   star(* 0.1 ** 0.05 *** 0.01)/*
*/	   keep(treatment_3) /*
*/	   coeflabel(treatment_3 "Treatment") /*
*/	   label depvars /*
*/	   mtitles("Saves w/Opportunity"/*
*/			   "Saves Monthly" /*
*/				"Saves Over 50 Cedis" /*
*/			   "Visits $<$  Monthly" /*
*/			   "Visits $<$ Last Year")/*
*/     collabels(none) compress /*
*/	   scalars("N Observations" "mean Placebo Mean" /*
*/			   "SE Wave FE") 


